package com.zds.transaction.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AccountMapper {
    @Update("update account set money= money+#{money} where accountname = #{accountName}")
   public void incrMoney(@Param("accountName") String accountName,@Param("money") Integer money);
    @Update("update account set money= money-#{money} where accountname = #{accountName}")
   public void decrMoney(@Param("accountName") String accountName,@Param("money") Integer money);
}
